﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iSun.Entity;
using iSun.Model;
using iSun.Common;
namespace iSun.SYS.Bussiness.Message
{

    public partial class BV_AllMessage : BLL.Base.BaseBussnies<V_AllMessage>
    {
        public BV_AllMessage() { this.entity = new V_AllMessage(); }


          /// <summary>
          /// 获取指定用户的全部信息
          /// </summary>
          /// <param name="ReceiverID">接收者</param>
          /// <returns></returns>
        public IList<V_AllMessage> GetAllSysMessages(Guid? ReceiverID)
        {
            try
            {

                string s ="ReceiverID='" + ReceiverID.ToString() + "'";
                return this.GetEntityListByCondition<V_AllMessage>(s);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
